package wang.jinggo.errcode;

import java.io.Serializable;

/**
 * @author wangyj
 * @description
 * @create 2017-07-01 11:37
 **/
public class Warn implements Serializable {

    private String field;
    private String message;
    private String[] messageArgs;

    public Warn() {
    }

    public Warn(String field, String message, String[] messageArgs) {
        this.field = field;
        this.message = message;
        this.messageArgs = messageArgs;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String[] getMessageArgs() {
        return messageArgs;
    }

    public void setMessageArgs(String[] messageArgs) {
        this.messageArgs = messageArgs;
    }

    public boolean global(){
        return field == null;
    }
}
